<%@ page import="com.qf.entity.Admin" %><%--
  Created by IntelliJ IDEA.
  User: Ken
  Date: 2022/3/30
  Time: 16:14
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<html>
<head>
    <title>新增学生</title>
</head>
<body>

    <!-- 判断是否登录 -->
  <%--  <c:if test="${empty login_user}">
        <c:redirect url="login.jsp"/>
    </c:if>--%>

    <!-- 判断是否有权限 -->
    <c:if test="${!fn:contains(login_user.powers, '2')}">
        <c:redirect url="nopower.jsp"/>
    </c:if>

    <c:if test="${param.status == '1'}">
        <script>alert("学生添加成功！");</script>
    </c:if>

    <h1>新增学生</h1>

    <hr/>
    <form action="addstudent" method="post">
        姓名：<input name="name"/><br/>
        年龄：<input name="age"/><br/>
        性别：<input name="sex" type="radio" value="1" checked/>男 <input name="sex" type="radio" value="0"/>女<br/>
        <button>添加学生</button>
    </form>
</body>
</html>
